package cn.wyz.org.service;

import cn.wyz.org.domain.Shop;
import cn.wyz.basic.service.IBaseService;
import cn.wyz.org.domain.ShopAuditLog;
import cn.wyz.org.vo.ShopVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author WuyuZ
 * @since 2022-06-12
 */
public interface IShopService extends IBaseService<Shop> {
    /**
     * 店铺入驻
     * @param shop
     */
    void settlement(Shop shop);

    /**
     * 根据店铺名查找店铺
     * @param name
     * @return
     */
    Shop selectByName(String name);

    /**
     * 店铺审核通过
     * @param log
     */
    void pass(ShopAuditLog log);

    /**
     * 店铺驳回
     * @param log
     */
    void reject(ShopAuditLog log);

    void activation(Long shopId);

    /**
     * 批量新增
     * @param list
     */
    void patchInsert(List<Shop> list);

    /**
     * 驳回修改数据页回显
     * @param id
     * @return
     */
    Shop reset(Long id);

    /**
     * 报表显示
     * @return
     */
    List<ShopVo> countByState();
}
